package com.gimi.cloud.mmf.user.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.gimi.cloud.mmf.user.entity.TestUser;

public interface TestUserService {
	
	void save(TestUser user);

	/**
	 *hql查询
	 * @param userName
	 * @param pageable
	 * @return
	 */
	List<TestUser> queryByHql(String userName, Pageable pageable);

	/**
	 * sql查询
	 * @param userName
	 * @param pageable
	 * @return
	 */
	List<TestUser> queryBySql(String userName, Pageable pageable);

	/**
	 * 方法名查询
	 * @param userName
	 * @param pageable
	 * @return
	 */
	List<TestUser> queryByMethodName(String userName, Pageable pageable);

	/**
	 * hql链表
	 * @param userName
	 * @param pageable
	 * @return
	 */
	List<Map<String, Object>> queryMoreTableByHql(String userName, Pageable pageable);

	/**
	 * sql链表
	 * @param userName
	 * @param pageable
	 * @return
	 */
	Page<List<Map<String, Object>>> queryMoreTableBySql(String userName, Pageable pageable);
	
}
